#include <vector>
#include <algorithm>
#include <iostream>

using namespace std;

class X {
	public:
		int nX;
	public:
		X () : nX(0){
		}
		X (int x) : nX(x){
		}
};

class Y {
	public:
		Y () : Yvec (10, 1) {}
		//Y () : Yvec (1, 2, 3, 4, 5) {}
		vector <int> Yvec;
};

// void print_content () {
	// ifstream input("vector.cpp");
	// copy(istreambuf_iterator<char>(input), istreambuf_iterator<char>(),
	// ostreambuf_iterator<char>(cout));
// }

int main () {
	cout << "ENTER :: main" << endl;
#if 0	
	vector <X> vec;
	X x1 (10);
	X x2 (20);
	vec.push_back (x1);
	vec.push_back (x2);
	for (unsigned i=0; i<vec.size(); i++) {
		cout << (vec.at(i)).nX << endl;
	}
#endif

#if 0
	Y y;
	cout << y.Yvec.size () << endl;
#endif	
	
	cout << "EXIT  :: main" << endl;
	return 0;
}

/*
 * output
 *
sg815553@IGTNSEZBS088 /cygdrive/d/cpptutor/trunk/cppTutor/depo/test/cpp/stl/vector
$ ./test.exe
ENTER :: main
10
20
EXIT  :: main

sg815553@IGTNSEZBS088 /cygdrive/d/cpptutor/trunk/cppTutor/depo/test/cpp/stl/vector
$  
*/